WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::CheckLog Class Reference

Log of a consistency check: whether it is consistent and the explanation of the inconsistencies. More...

#include <core/utils/check_log.h>

Public Member Functions

 CheckLog ()
 Default constructor: consistent, without explanation. More...
 
 CheckLog (bool _consistent, std::string _explanation)
 Constructor from the consistency and the explanation (kept only if inconsistent) More...
 
 ~CheckLog ()
 Destructor. More...
 
void compose (CheckLog l)
 Composes another log: consistent if both are, with both explanations. More...
 
void assertTrue (bool _condition, std::stringstream &_stream)
 Composes a condition, with the stream contents as explanation if false, and clears the stream. More...
 

Public Attributes

bool is_consistent_
 Whether the check passed. More...
 
std::string explanation_
 Explanation of the inconsistencies. More...
 

Detailed Description

Log of a consistency check: whether it is consistent and the explanation of the inconsistencies.

Constructor & Destructor Documentation

◆ CheckLog() [1/2]

CheckLog::CheckLog ( )

Default constructor: consistent, without explanation.

◆ CheckLog() [2/2]

CheckLog::CheckLog ( bool  _consistent,
std::string  _explanation 
)

Constructor from the consistency and the explanation (kept only if inconsistent)

◆ ~CheckLog()

wolf::CheckLog::~CheckLog ( )
inline

Destructor.

Member Function Documentation

◆ assertTrue()

void CheckLog::assertTrue ( bool  _condition,
std::stringstream &  _stream 
)

Composes a condition, with the stream contents as explanation if false, and clears the stream.

◆ compose()

void CheckLog::compose ( CheckLog  l)

Composes another log: consistent if both are, with both explanations.

Member Data Documentation

◆ explanation_

std::string wolf::CheckLog::explanation_

Explanation of the inconsistencies.

◆ is_consistent_

bool wolf::CheckLog::is_consistent_

Whether the check passed.


The documentation for this class was generated from the following files: